package com.puppet.building182.handler;

import com.puppet.building182.handler.exception.MyBuildingException;
import com.puppet.building182.pojo.Result;

public class MyAssert {
    public static void error(boolean flg, String msg) {
        if (flg) throw new MyBuildingException(
                Result.fail(msg)
        );
    }
}